package com.bridge.bridge_wd;

import android.content.Intent;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.bridge.bridge_wd.activity.AboutActivity;
import com.bridge.bridge_wd.activity.AnQuanCenterActivity;
import com.bridge.bridge_wd.activity.MyInforActivity;
import com.bridge.bridge_wd.activity.QianBaoActivity;
import com.bridge.bridge_wd.activity.QianDaoActivity;
import com.bridge.bridge_wd.activity.SetActivity;
import com.bridge.bridge_wd.activity.YiJianFanKuiActivity;
import com.bridge.bridge_wd.databinding.FgHomeWdBinding;
import com.bridge.common.utils.UltimateBarXUtils;
import com.bridge.imconfig.base.BaseFragment;

/**
 * author : bridge.24
 * date   : 21.3.122:41
 * desc   :
 */
@Route(path = "/bridge_wd/WdFragment")
public class WdFragment extends BaseFragment implements View.OnClickListener {
    private FgHomeWdBinding binding;

    @Override
    protected int layoutId() {
        return R.layout.fg_home_wd;
    }

    @Override
    protected void initListener() {

    }

    @Override
    public void initDataData() {

    }

    @Override
    protected void initView(View view) {
        UltimateBarXUtils.setAppBar(getActivity(), true, true, R.color.color_f5f5f5);
        binding = getBind();
        binding.linearMyInfor.setOnClickListener(this);
        binding.linearMyQianbao.setOnClickListener(this);
        binding.linearMyQiandao.setOnClickListener(this);
        binding.linearMyAqzx.setOnClickListener(this);
        binding.linearMyYjfk.setOnClickListener(this);
        binding.linearMyTousu.setOnClickListener(this);
        binding.linearMyAbout.setOnClickListener(this);
        binding.linearMySet.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (view.getId() == R.id.linear_my_infor) {
            Intent intent = new Intent(getActivity(), MyInforActivity.class);
            startActivity(intent);
        }
        if (view.getId() == R.id.linear_my_qianbao) {
            Intent intent = new Intent(getActivity(), QianBaoActivity.class);
            startActivity(intent);
        }
        if (view.getId() == R.id.linear_my_qiandao) {
            Intent intent = new Intent(getActivity(), QianDaoActivity.class);
            startActivity(intent);
        }
        if (view.getId() == R.id.linear_my_aqzx) {
            Intent intent = new Intent(getActivity(), AnQuanCenterActivity.class);
            startActivity(intent);
        }
        if (view.getId() == R.id.linear_my_yjfk) {
            Intent intent = new Intent(getActivity(), YiJianFanKuiActivity.class);
            startActivity(intent);
        }
        if (view.getId() == R.id.linear_my_tousu) {
        }
        if (view.getId() == R.id.linear_my_about) {
            Intent intent = new Intent(getActivity(), AboutActivity.class);
            startActivity(intent);
        }

        if (view.getId() == R.id.linear_my_set) {
            Intent intent = new Intent(getActivity(), SetActivity.class);
            startActivity(intent);
        }
    }
}
